//编辑。
Ext.define("ES.view.sections.SectionsEdit",{
    extend:"Ext.window.Window",
    alias:"widget.sectionsEdit",
    title:"教材章节",
    width:450,
    height:210,
    layout:"fit",
    modal:true,
    items:{
        xtype:"form",
        defaultType:"textfield",
        frame:true,
        layout:"column",
        buttonAlign:"center",
        defaults:{
            labelSeparator:":",
            labelWidth:56,
            labelAlign:"right",
            allowBlank:false,
            blankText:"不允许为空",
            msgTarget:"side"
        },
        items:[{
            xtype:"combo",
            fieldLabel:"上级章节",
            emptyText:"====上级章节====",
            id:"parentSectionID",
            name:"parentSectionID",
            queryMode:"local",
            lazyRender:true,
            store:"NotSelfSectionsStore",
            displayField:"fullFieldName",
            valueField:"fieldID",
            allowBlank:true,
            columnWidth:1
        },{
            fieldLabel:"章节名称",
            name:"sectionName",
            columnWidth:1
        },{
            xtype:"combo",
            fieldLabel:"所属科目",
            emptyText:"====所属科目====",
            name:"catalogID",
            queryMode:"local",
            lazyRender:true,
            store:"CatalogStore",
            displayField:"fullCatalogName",
            valueField:"catalogID",
            columnWidth:1
        },{
            fieldLabel:"描述信息",
            xtype:"textareafield",
            grow:true,
            autoScroll:true,
            name:"description",
            allowBlank:true,
            columnWidth:1
        }],
        buttons:[{
                   text:"保存",
                   action:"btnSave",
                   formBind:true,
                   disabled:true,
                   tooltip:"保存数据"
               },{
                   text:"取消",
                   action:"btnCancel",
                   tooltip:"关闭窗口"
               }]
    },
    initComponent:function(){
        this.callParent(arguments);
    }
})